<?php
/* @var $this BukutamuBeritaController */
/* @var $model BukutamuBerita */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'bukutamu-berita-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<table border="0" cellpadding="0" cellspacing="0" id="id-form">
    
         <tr>
            <th valign="top"><?php echo $form->labelEx($model,'nama'); ?></th>
            <td class="idform">
               	<?php echo $form->textField($model,'nama',array('size'=>60,'maxlength'=>255)); ?>
            </td>
            <td class="idform">
                <?php if ($model->hasErrors('nama')) echo "<div class='error-left'></div>"; ?>
                <?php echo $form->error($model, 'nama', array('class' => 'error-inner')); ?>
            </td>
        </tr>
    
       <tr>
            <th valign="top"><?php echo $form->labelEx($model,'email'); ?></th>
            <td class="idform">
               	<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>255)); ?>
            </td>
            <td class="idform">
                <?php if ($model->hasErrors('email')) echo "<div class='error-left'></div>"; ?>
                <?php echo $form->error($model, 'email', array('class' => 'error-inner')); ?>
            </td>
        </tr>
        
        
         <tr>
            <th valign="top"><?php echo $form->labelEx($model,'alamat'); ?></th>
            <td class="idform">
               	<?php echo $form->textArea($model,'alamat',array('rows'=>2, 'cols'=>50));//php echo $form->textField($model,'alamat',array('size'=>50,'maxlength'=>50)); ?>
            </td>
            <td class="idform">
                <?php if ($model->hasErrors('alamat')) echo "<div class='error-left'></div>"; ?>
                <?php echo $form->error($model, 'alamat', array('class' => 'error-inner')); ?>
            </td>
        </tr>
        
      
      
      
        <tr>
            <th valign="top"><?php echo $form->labelEx($model,'komentar'); ?></th>
            <td class="idform">
               	<?php echo $form->textArea($model,'komentar',array('rows'=>6, 'cols'=>50)); ?>
            </td>
            <td class="idform">
                <?php if ($model->hasErrors('komentar')) echo "<div class='error-left'></div>"; ?>
                <?php echo $form->error($model, 'komentar', array('class' => 'error-inner')); ?>
            </td>
        </tr>
        
             <tr>
            <th valign="top"><?php echo $form->labelEx($model,'jawaban'); ?></th>
            <td class="idform">
               	<?php echo $form->textArea($model,'jawaban',array('rows'=>6, 'cols'=>50)); ?>
            </td>
            <td class="idform">
                <?php if ($model->hasErrors('jawaban')) echo "<div class='error-left'></div>"; ?>
                <?php echo $form->error($model, 'jawaban', array('class' => 'error-inner')); ?>
            </td>
        </tr>
        <tr>
    <td valign="top">
        <div class="tamuisianlabel"><b>    <?php echo $form->labelEx($model, 'status'); ?></b></div>
    </td>
      <td valign="top">    <?php echo $form->radioButtonList($model, 'status',
        array(0 => 'Non Aktif', 1 => 'Aktif')); ?></td>
         <td class="idform">
                <?php if ($model->hasErrors('status')) echo "<div class='error-left'></div>"; ?>
                <?php echo $form->error($model, 'status', array('class' => 'error-inner')); ?>
            </td>
</tr>
	<tr>
         	<td valign="top">
		</td>
			<td valign="top"><div >	<?php if (CCaptcha::checkRequirements()): ?>
                    <div style="float:left">
                        <?php $this->widget('CCaptcha', array(
                            'imageOptions' => array('width' => '90px', 'background' => 'white',),
                            'showRefreshButton' => false,
                            'clickableImage' => true)); ?>
                    </div>
                    <div style="float:left">
                        <?php echo $form->textField($model, 'verifyCode', array(
                        'style' => 'width:100px',
                        'placeholder' => "ketik captcha...")); ?>
                    </div>
                    <?php endif; ?></div></td>
          
        
        	
		</tr>
      <tr>
            <th>&nbsp;</th>
            <td valign="top">
              <?php echo CHtml::submitButton($model->isNewRecord ? 'Buat' : 'Simpan',array('class'=>'form-submit')); ?>
            </td>
            <td class="idform"></td>
        </tr>
</table>

<?php $this->endWidget(); ?>

</div><!-- form -->